import request from "@/utils/http"
//获取面包屑导航
export const getTopCategoryAPI = (id) => {
    return request({
        url: '/category',
        params: {
            id
        },
        method: 'GET'
    })
}
//获取二级分类面包屑导航
export const getCategoryFilterAPI = (id) => {
    return request({
        url: '/category/sub/filter',
        params: {
            id
        }
    })
}
//获取导航数据
export const getSubCategoryAPI = (data) => {
    return request.post(
        '/category/goods/temporary',
        data
    )
}